<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
	   	
	</head>
	<body>
		<form action="{{U('edit',array('gid'=>$_GET['gid'],'tid'=>$_GET['tid'],'glid'=>$_GET['glid']))}}" method="post">
			<table class="table table-hover">
			
	<tr>
		<td>编辑货品</td>
		{{foreach from = "$typedata" key="$k" value="$v"}}
		<td>
		<select name="gl_combine[]">
  {{foreach from="$v['select']" key="$key" value="$value"}}
		<option value="{{$value['ga_id']}}" {{if value="$value['ga_id']==$olddata['gl_combine'][$k]['ga_id']"}} selected{{endif}}>{{$value['ga_value']}}</option>
		{{endforeach}}
		</select>
		</td>
		{{endforeach}}
		<td><input type="text" value="{{$olddata['gl_inventory']}}" name="gl_inventory" placeholder="请输入库存"/></td>
		<td><input type="text" name="gl_number" value="{{$olddata['gl_number']}}" placeholder="请输入货号"/></td>
	 <td></td>
	</tr>
		</table>
		<input type="hidden" name="gl_gid" id="" value="{{$_GET['gid']}}" />
		<input type="hidden" name="gl_id" id="gl_id" value="{{$_GET['glid']}}" />
		<input type="submit" value="确认编辑" class="hd-btn hd-btn-success" style="height: 40px;"/>
		
	</form></body>
</html>
